/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package scrumprojekt;

/**
 *
 * @author Kristoffer
 */
public class StringHelper
{
  public static String sprintf(String format, Object[] arguments)
  {
    String result = format;
    result = result.replaceAll("%#", "\f\f");
    for (Object o : arguments) {
      result = result.replaceFirst("#", o.toString());
    }
    return result.replaceAll("\f\f", "#");
  }
}